package com.flyduck.vueshop.user.fallback;

import com.flyduck.vueshop.common.core.lang.Result;
import com.flyduck.vueshop.user.feign.RemoteAddressFeignClient;
import com.flyduck.vueshop.user.vo.RemoteAddressRespVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * <p>
 * RemoteAddressFallback
 * </p>
 *
 * @author flyduck
 * @since 2024-07-22
 */
@Slf4j
@Component
public class RemoteAddressFallback implements RemoteAddressFeignClient {
    @Override
    public Result<RemoteAddressRespVO> getDefaultAddressByUserId(Long userId) {
        log.error("获取默认地址失败");
        return Result.success(null);
    }

    @Override
    public Result<RemoteAddressRespVO> getAddressById(Long id) {
        log.error("获取默认地址失败");
        return Result.success(null);
    }
}
